package com.wollo.service;

import com.github.pagehelper.PageInfo;
import com.wollo.domain.PageResult;
import com.wollo.domain.TMenu;

import java.util.List;

/**
 * //
 * //   █████▒█    ██  ▄████▄   ██ ▄█▀       ██████╗ ██╗   ██╗ ██████╗
 * // ▓██   ▒ ██  ▓██▒▒██▀ ▀█   ██▄█▒        ██╔══██╗██║   ██║██╔════╝
 * // ▒████ ░▓██  ▒██░▒▓█    ▄ ▓███▄░        ██████╔╝██║   ██║██║  ███╗
 * // ░▓█▒  ░▓▓█  ░██░▒▓▓▄ ▄██▒▓██ █▄        ██╔══██╗██║   ██║██║   ██║
 * // ░▒█░   ▒▒█████▓ ▒ ▓███▀ ░▒██▒ █▄       ██████╔╝╚██████╔╝╚██████╔╝
 * //  ▒ ░   ░▒▓▒ ▒ ▒ ░ ░▒ ▒  ░▒ ▒▒ ▓▒       ╚═════╝  ╚═════╝  ╚═════╝
 * //  ░     ░░▒░ ░ ░   ░  ▒   ░ ░▒ ▒░
 * //  ░ ░    ░░░ ░ ░ ░        ░ ░░ ░
 * //           ░     ░ ░      ░  ░
 * //                 ░
 *
 * @author Java song
 * @date 2024/9/16 下午8:19
 * @description
 **/
public interface MenuService {

    static final Integer SUCCESS = 1;
    //TODO 分页查询所有菜单
    public PageResult<TMenu> selectAll(Integer pageNum, Integer pageSize);

    //TODO 条件查询
    public List<TMenu> selectBy(TMenu menu,String username);

    //TODO 新增菜单
    public int insert(TMenu menu);

    //TODO 修改菜单
    public int update(TMenu menu);

    //TODO 删除菜单
    public int delete(int id);

    //TODO 批量删除菜单
    public int delete(int[] ids);
}
